package com.managerProvider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 角色映射器
 * The interface Role mapper.
 *
 * @author overlook
 * @date 2022 -04-16 20:11:45
 */
@Mapper
@Component
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * Select role list.
     *
     * @param role the role
     * @return the list
     */
    List<Role> selectRole(Role role);

    /**
     * Select role and power list.
     *
     * @param role the role
     * @return the list
     */
    List<Role> selectRoleAndPower(Role role);


    /**
     * Select one role power list.
     *
     * @param role the role
     * @return the list
     */
    Role selectOneRolePower(Role role);

}
